package com.sign.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author 513422479@qq.com
 * Date on 2021/4/14  11:22
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RepeatableCommit {
    /**
     * 指定时间内不可重复提交,单位毫秒，默认5秒
     */
    long timeout() default 5;

    RepeatableTypeEnum type() default RepeatableTypeEnum.IP;
}
